function initMaps() {
    function showImageLabel(img) {
        let agLable = img.attributes['aglabel']
        if (!agLable || !agLable.value) {
            return;
        }

        let containerDiv = document.createElement('div');
        containerDiv.style.width = 'fit-content';
        containerDiv.style.paddingBottom = '10px';

        let labelDiv = document.createElement('div');
        labelDiv.style.textAlign = 'center';
        labelDiv.style.fontFamily = 'cursive';
        labelDiv.innerText = "图示: " + agLable.value;

        // Move img into containerDiv
        let parent = img.parentNode;
        parent.insertBefore(containerDiv, img);
        containerDiv.appendChild(img);
        containerDiv.appendChild(labelDiv);
    }

    function showBigImage(e) {
        let _this = e.target;
        var src = _this.src;
        src = src.substr(0, src.lastIndexOf('.')) + ".mx" + src.substr(src.lastIndexOf('.'));

        document.getElementById("bigImg").src = src;
        document.getElementById('back-curtain').style.display = "block";
        document.getElementById('back-curtain').onclick = function () {
            document.getElementById('back-curtain').style.display = "none";
        }
        try {
            var img = new Image();
            img.src =
                img.onload = function () {
                    var w = img.width;
                    var h = img.height;
                    if (screen.width * 1.0 / w < screen.height * 1.0 / h) {
                        var r = screen.width * 0.8 / w;
                        var th = h * r;

                        document.getElementById("imgDiv").style.left = (20) + "%";
                        document.getElementById("imgDiv").style.top = ((100 - (th / screen.height * 100)) / 2) + "%";

                        document.getElementById("bigImg").style.width = "80%";
                        document.getElementById("bigImg").style.height = (th / screen.height * 100) + "%";
                    }
                    else {
                        var r = screen.height * 0.8 / h;
                        var th = w * r;
                        document.getElementById("imgDiv").style.left = ((100 - (th / screen.width * 100)) / 2 + 10) + "%";
                        document.getElementById("imgDiv").style.top = (10) + "%";

                        document.getElementById("bigImg").style.height = "80%";
                        document.getElementById("bigImg").style.width = (th / screen.width * 100) + "%";
                    }
                }
        }
        catch (e2) {

        }
    }

    window.showBigImage = showBigImage;

    var imgs = document.getElementsByTagName("img");
    for (var i = 0; i < imgs.length; i++) {
        showImageLabel(imgs[i]);
        if (imgs[i].attributes.fixsized) {
            imgs[i].onclick = window.showBigImage;
            continue;
        }

        if (imgs[i].width < 360 || imgs[i].height < 240) {
            continue;
        }
        if (imgs[i].width > 1000 || imgs[i].height > 1000) {
            continue;
        }
        if (imgs[i].id != "bigImg") {
            imgs[i].style.width = '600px';
            imgs[i].style.height = '360px';
            imgs[i].onclick = window.showBigImage;
        }
    }
    createMask();
}

function bindClick() {
    if (window.isBindClick) return;
    document.onclick = function () {
        window.isBindClick = true;
        initMaps();
        document.onclick = null;
    }
}

initMaps();
bindClick();

function createMask() {
    if (document.body == null) return;
    if (document.getElementById('back-curtain') != null) return;
    var t1 = document.createElement('div');
    t1.id = 'back-curtain';
    t1.style = "position: fixed;top: 0;left: 0;background: rgb(130 141 204 / 50%);z-index: 998; width: 100%;display: none;height: 100%;";
    var t2 = document.createElement('div');
    t2.id = 'imgDiv';
    t2.style = "position:absolute;left: 20%;top: 10%;width: 80%;height: 90%;";
    var t3 = document.createElement('img');
    t3.id = 'bigImg';
    t3.style = "width:80%;height:80%;border-radius:10px;box-shadow:1px 1px 5px 5px #756d6d";
    t1.appendChild(t2);
    t2.appendChild(t3);
    document.body.appendChild(t1);

}

function buildLoginBox() {
    if (document.body == null) return;
    var str = ` 
           <style>
             .myButton{
                 padding: 4px 6px 4px 6px;
             }
             .tarea{
                 height: 200px;
                width: 500px;
                color: #bf4b4b;
                margin-top: 10px;
                border-radius: 3px;
                padding: 2px;
             }
           </style>
            <div style="top: 30%;left: 50%;position:relative">
            <div>考虑到安全性问题，该网站不能被访问，也不要联系陈彪</div>
            <input type="text" id="message1" value="@augurit.com" 
                style="border-radius: 10px;font-size: 18px;border-color: #00BCD4;border-width: 1px;box-shadow: none;text-indent: 10px;padding: 1px;" 
                placeholder="XXX@augurit.com" />
            <div>
            <input type="text" id="message3" value="" placeholder="输入验证码" 
                style="border-radius: 10px;font-size: 18px;border-color: #00BCD4;border-width: 1px;box-shadow: none;text-indent: 10px;padding: 1px;" />
            </div>
            <div style="background: linear-gradient(45deg, #c7f2f7, #67f1a6);margin: 10px 0px 10px; width: 500px;border-radius: 10px;padding: 5px;box-shadow: 6px 6px 6px 5px #d3bcbc;">
                请选择正确的答案以申请验证码。
                <div id="question" style="font-weight: bold;"></div>
                <div style="font-weight: 600;padding: 5px;">
                    <input type='radio' name="questionOption"/> <span  id='qOptionA'></span>
                 </div>
                 <div style="font-weight: 600;padding: 5px;">
                     <input type='radio' name="questionOption"><span  id='qOptionB'></span>
                 </div>
                 <input type="button" onclick="checkLoginQuestion()" id="submitQuestion" class="myButton" value="提交">
            </div>
            <div>
            <input type="button" onclick="sendData1()" id="sendMailButton" class="myButton" value="发送验证码">
            <input type="button" id="send2" onclick="sendData2()" class="myButton" value="验证登录">
            </div>
            <div>
                <textarea id="textarea1" class='tarea' readonly></textarea>
            </div>
            </div>
        `
    var t = document.createElement('div');
    t.id = 'loginBox';
    t.style.width = "100%";
    t.style.height = "100%";
    t.style.background = "#cbcbcb";
    t.style.position = "absolute";
    t.style.top = "0px";
    t.innerHTML = str;
    document.body.appendChild(t);
}

//下面是Socket的内容
var isSocketOff = true;
function buildWebSocket() {
    //检查浏览器是否支持WebSocket
    if (!window.WebSocket) {
        console.log('您的浏览器不支持WebSocket');
    }
    var el = document.getElementById("textarea1");
    if (window.myWSClient && window.myWSClient.readyState == 1) {
        return;
    }
    //var wsClient = new WebSocket('ws://183.6.116.52:8085/wsRobot');
    var wsClient = new WebSocket('ws://{NGURL}/wsRobot');//121.33.231.74:4180
    window.myWSClient = wsClient;
    //连接
    wsClient.open = function (e) {
        el.value += "连接到了！\r\n";
        isSocketOff = false;
    }
    wsClient.onclose = function (e) {
        el.value += "突然你就走了，断开了！\r\n";
        isSocketOff = true;
    }
    //接收
    wsClient.onmessage = function (e) {
        var edata = e.data;
        if (edata.indexOf("SendMail:") >= 0) {
            if (edata.indexOf("SendMail:OK") >= 0) {
                /*document.getElementById('CheckStateBox').style.display = "";
                document.getElementById('sendEmainBox').style.display = "none";*/
            }
            el.value += "接收的信息：" + e.data + "\r\n";
        }
        else if (edata.indexOf("CheckState:Error") >= 0) {
            el.value += "接收的信息：" + e.data + "\r\n";
        }
        else if (edata.startsWith("GetLoginQuestion")) {
            initLoginQuestionDom(edata);
        }
        else if (edata.startsWith("GetJikeFileList")) {
            initJikePages(edata);
        }
        else if (edata.startsWith("GetPageViewCount")) {
            responsePageVisitCount(edata);
        }
        else if (edata.startsWith("SearchMainContent")) {
            showSearchPanel(edata);
        }
        else if (edata.startsWith("GetCAPFileList")) {
            initCAPPages(edata);
        } else if (edata.startsWith("DeployCAPFile")) {
            openCAPPages(edata);
        } else if (edata.startsWith("getMarkdownFileChanged")) {
            showMarkdownFileChangedSign(edata);
        }
        else if (edata.startsWith("GetWishboard")) {
            showWishBoard(edata);
        }
        else {
            let loginBoxDom = document.getElementById('loginBox');
            if (loginBoxDom)
                loginBoxDom.style.display = "none";
            let message1Dom = document.getElementById('message1');
            let message3Dom = document.getElementById('message3');

            if (message1Dom && message3Dom) {
                var t1 = message1Dom.value;
                var t2 = message3Dom.value;
                if (t2.length > 0) {
                    localStorage.setItem("AgCIM_Desktop_Doc.Usr", t1);
                    localStorage.setItem("AgCIM_Desktop_Doc.Psw", t2);
                }
            }
            
            if (edata.startsWith('{')) {
                processJSFileMatchFormat(edata);
            }
            else {
                document.getElementsByTagName('main')[0].innerHTML = edata;
                setTimeout(autoLocationDomNode, 400);
                setTimeout(autoLocationDomNode, 2400);
            }
        }
    }
    wsClient.onerror = function (e) {
        el.value += "连接失败！结果：" + e.data + "\r\n";
    }
}
function processJSFileMatchFormat(edata) {
    var kdata = edata.replace('{', '').replace('}', '').split(',');
    var resData = {};
    for (var i = 0; i < kdata.length; i++) {
        var kv = kdata[i].split(':');
        if (kv[1])
            resData[kv[0]] = kv[1].substr(1, kv[1].length - 2)
    }
    window.jsFileMatch = resData;
}
function checkState() {
    var usr = localStorage.getItem("AgCIM_Desktop_Doc.Usr");
    var psw = localStorage.getItem("AgCIM_Desktop_Doc.Psw");
    if (usr && psw) {
        var mcs = document.getElementsByTagName('main');
        if (mcs.length == 0) {
            return;
        }
        let message1Dom = document.getElementById('message1');
        let message3Dom = document.getElementById('message3');
        var content = mcs[0].attributes['code'].value
        if (message1Dom)
            message1Dom.value = usr;
        if (message3Dom)
            message3Dom.value = psw;
        sendData("CheckState:" + usr + "," + psw + "," + content)
    }
    else {
        /*document.getElementById('CheckStateBox').style.display = "none";
        document.getElementById('sendEmainBox').style.display = "";*/
    }
}
//发送
function sendData(msg) {
    if (isSocketOff) {
        buildWebSocket();
        setTimeout(() => {
            myWSClient.send(msg + "," + AppName);
        }, 100);
    }
    else {
        myWSClient.send(msg + "," + AppName);
    }
}
function sendData1() {
    if (isOKAskLogionQuestion == false) {
        alert("请先答题，选择正确的答案就有机会获得验证码");
        return;
    }
    if (!window.lastSendMailTime) {
        window.lastSendMailTime = 1;
    }
    if (Date.now() - window.lastSendMailTime < 30000) {
        alert("过于频繁，请30秒后重试");
        return;
    }
    window.lastSendMailTime = Date.now();
    var msg = "SendMail:" + document.getElementById('message1').value;
    myWSClient.send(msg);
    document.getElementById("sendMailButton").value = "验证码已发送";
}
function sendData2() {
    var content = document.getElementsByTagName('main')[0].attributes['code'].value;
    var t1 = document.getElementById('message1').value;
    var t2 = document.getElementById('message3').value;
    if (t2.length < 3) {
        alert("没有验证码");
        return;
    }
    var msg = "CheckState:" + t1 + "," + t2 + "," + content;
    sendData(msg);
}
//下面是获得数据的
var AppName = "{APPNAME}"
function getContentByUrl(fileName) {
    if (!fileName) return;
    var usr = localStorage.getItem("AgCIM_Desktop_Doc.Usr");
    var psw = localStorage.getItem("AgCIM_Desktop_Doc.Psw");
    if (usr && psw) {
        sendData("CheckState:" + usr + "," + psw + "," + fileName)
    }
}
function getJSMatch() {
    var usr = localStorage.getItem("AgCIM_Desktop_Doc.Usr");
    var psw = localStorage.getItem("AgCIM_Desktop_Doc.Psw");
    if (usr && psw && !window.jsFileMatch) {
        sendData("CheckState:" + usr + "," + psw + "," + "jsFileMatch");
    }
}
/**
 * 处理带后缀？的情况
 * @returns 
 */
function loginFromUrl() {
    var t = window.location.href.indexOf('?');
    if(t<=0)return;
    var st = window.location.href.substring(t + 1).split('&');
    for(var i=0;i<st.length;i++){
        if(st[i].startsWith("username=")){
            localStorage.setItem("AgCIM_Desktop_Doc.Usr", st[i].substring(9));
        }
        if (st[i].startsWith("password=")){
            localStorage.setItem("AgCIM_Desktop_Doc.Psw", st[i].substring(9));
            localStorage.setItem("ifFromOffical", true);
        }
        if(st[i].startsWith("from=offical")){
            localStorage.setItem("ifFromOffical", true);
        }
        if (st[i].startsWith("from=local")) {
            localStorage.setItem("ifFromOffical", false);
        }
    }
    window.location.href = window.location.href.substring(0, t) ;
}
function autoLocationDomNode() {
    try {
        var t = window.location.href.indexOf('#');
        if (t <= 0) return;
        var ref = window.location.href.substring(t + 1);
        var t2 = ref.indexOf('?');
        if (t2 > 0) {
            ref = ref.substring(0, t2);
        }
        var t = document.getElementById(decodeURI(ref));
        window.scrollTo({
            top: t.offsetTop
        });
    } catch (e) {

    }
    
}
loginFromUrl();
buildLoginBox();
buildWebSocket();
bindSearch();
handleFromOffical();

function beginAllWork() {
    if (!window.jsFileMatch) {
        setTimeout(getJSMatch, 150);
        setTimeout(checkState, 500);
        setTimeout(sendLoginQuestion, 600);
        setTimeout(findIs, 750);
        setTimeout(buildToc, 1000);
        setTimeout(getPageVisitCount, 1200);
        setTimeout(getMdEditState, 1200);
        setTimeout(new autoLoadSetupExcel(), 1200);
    }
    else {
        setTimeout(checkState, 150);
        setTimeout(sendLoginQuestion, 200);
        setTimeout(findIs, 750);
        setTimeout(buildToc, 1000);
        setTimeout(getPageVisitCount, 1200);
        setTimeout(getMdEditState, 1200);
        setTimeout(new autoLoadSetupExcel(), 1200);
    }
}

let waitWebSocketTime = setInterval(() => {
    if (window.myWSClient && window.myWSClient.readyState == 1) {
        clearInterval(waitWebSocketTime);
        beginAllWork();
    }
}, 200);

function findIs() {
    findIsJSYK();
    findIsYDFB();
    findIsHomePage();
    findIsJikePage();
    findIsCAPPage();
    processWishBoard();
    findIsWishBoard();
    setDOMStyles();
}

//下面是更新技术月刊的
function findIsJSYK() {
    var h1 = document.getElementsByTagName('h1');
    if (h1.length == 0 || h1[0].id != 'agcim-技术月刊') return;
    var embedItems = document.getElementsByTagName('embed');
    if (embedItems.length == 0) return;
    var topMenu = document.getElementsByClassName('top-menu');
    if (topMenu.length > 0) { topMenu[0].style.width = "120px" }
    var menu = document.getElementsByClassName('ul-menu');
    if (menu.length == 0) return;
    var menuItems = menu[0].getElementsByTagName('a');
    for (var i = 0; i < menuItems.length; i++) {
        menuItems[i].parentElement.style.width = "100%";
        menuItems[i].onclick = onJSYKClick;
    }
    document.getElementById("item").onclick = onJSYKDIRClick;
}
function onJSYKClick(e) {
    var embedItems = document.getElementsByTagName('embed');
    if (embedItems.length == 0) return;
    //"http://"+ window.location.hostname+":8088" 
    var url = window.location.origin + "/AgCIM技术月刊/AgCIM技术月刊" + e.target.innerText + ".pdf";
    embedItems[0].src = url;
    onJSYKDIRClick(e);
}
//月刊目录
function onJSYKDIRClick(e) {
    let memuList = document.getElementById("memuList");
    memuList.style.display = memuList.style.display == 'block' ? "none" : "block";
}

//下面是更新月度发布的
function findIsYDFB() {
    var h1 = document.getElementsByTagName('h1');
    if (h1.length == 0 || h1[0].id != '产品发布会pdf') return;
    var menu = document.getElementsByClassName('ul-menu1');
    if (menu.length == 0) return;
    var menuItems = menu[0].getElementsByTagName('a');
    for (var i = 0; i < menuItems.length; i++) {
        menuItems[i].onclick = onYDFBClick;
    }
    var parentStyles = document.getElementsByClassName('theme-default-content');
    if (parentStyles.length > 0) {
        parentStyles[0].style.padding = "0px";
        parentStyles[0].style.margin = "0px";
        parentStyles[0].style.maxWidth = "100%";
    }
}
function onYDFBClick(e) {
    var embedItems = document.getElementsByTagName('embed');
    if (embedItems.length == 0) return;
    var year = e.target.parentElement.firstChild.textContent.trim();
    var url = window.location.origin + "/AgCIM月度发布/AgCIM_" + e.target.innerText + "_" + year + ".pdf";
    embedItems[0].src = url;
}
/**
 * 构建导航目录
 * @returns 
 */
function buildToc() {
    var div = document.createElement('div');
    div.style.position = 'fixed';
    div.style.right = '0px';
    div.style.top = '5px';
    div.style.marginTop = '60px';
    div.style.width = '200px';
    div.style.padding = '10px';
    div.style.height = 'calc(100% - 120px)';
    div.style.overflow = 'overlay';
    div.style.borderLeft = "1px solid #afaaaa73";
    setDomStyle(div, {
        //"boxShadow": "rgb(249 237 223) 0px 0px 5px 3px",
        //"border": "2px solid #ebdddd",
        "backdropFilter": "blur(180px) saturate(1.5)",
        "background": "#ffffff"//repeating-linear-gradient(228deg, #f7fff8,#f8fcf9, #f5fff8 80px)
    })

    //下面是适配打印的
    var printButton = document.createElement('button');
    printButton.innerText = "适配打印";
    printButton.style.width = "100%"
    div.appendChild(printButton);
    printButton.onclick = function () {
        var header = document.getElementsByTagName('header');
        if (header && header.length > 0)
            header[0].parentElement.removeChild(header[0]);
        var aside = document.getElementsByTagName('aside');
        if (aside && aside.length > 0)
            aside[0].parentElement.removeChild(aside[0]);
        var mainDom = document.getElementsByTagName('main')
        if (mainDom && mainDom.length > 0)
            mainDom = mainDom[0];
        if (mainDom)
            mainDom.style.paddingLeft = "0";
        div.parentElement.removeChild(div);
        var mainDomFirstDiv = mainDom ? mainDom.children[0] : null;
        if (mainDomFirstDiv) {
            mainDomFirstDiv.style.maxWidth = "100%";
        }
        var pageVisitCount = document.getElementById('pageVisitCount');
        if (pageVisitCount)
            pageVisitCount.parentElement.removeChild(pageVisitCount);
    }

    //下面是Chatgpt
    var chatgptButton = document.createElement('button');
    chatgptButton.innerText = "CIM聊天机器人";
    chatgptButton.style.width = "100%"
    div.appendChild(chatgptButton);
    chatgptButton.onclick = function () {
        window.open("http://{NGURL}/desktopDoc/jike/chatWithCIMMachine.html")
    }

    //下面是页面编辑
    var editMdButton = document.createElement('button');
    editMdButton.id = "editMdButton";
    editMdButton.innerText = "本内容编辑";
    editMdButton.style.width = "100%"
    div.appendChild(editMdButton);
    editMdButton.onclick = function () {
        window.open("http://{NGURL}/desktopDoc/jike/editMd.html?" + location.href)
    }


    var h2 = document.body.getElementsByTagName('h2');
    var h3 = document.body.getElementsByTagName('h3');
    var h4 = document.body.getElementsByTagName('h4');
    if (h2.length == 0)
        return;
    var hs = [];
    for (var i in h2) {
        if (!h2[i].tagName) continue;
        hs.push(h2[i]);
    }
    for (var i in h3) {
        if (!h3[i].tagName) continue;
        hs.push(h3[i]);
    }
    for (var i in h4) {
        if (!h4[i].tagName) continue;
        hs.push(h4[i]);
    }
    hs.sort(function (a, b) {
        if (a.offsetTop < b.offsetTop) return -1;
        if (a.offsetTop > b.offsetTop) return 1;
        return 0;
    })
    for (var i = 0; i < hs.length; i++) {
        var h2Item = hs[i];
        var si = document.createElement('div');
        si.innerText = h2Item.id.startsWith('_') ? h2Item.id.substr(1) : h2Item.id;
        if (si.innerText.length == 0) {
            continue;
        }
        si.sourceTag = h2Item.childNodes[0];
        si.style.textIndent = (parseInt(h2Item.tagName.substr(1)) - 1) * 8 + "px";
        si.className = "toc";
        si.onclick = onTocClick;
        div.appendChild(si);
    }
    document.body.appendChild(div);

    //下面是设置main页面的样式
    var mainDom = document.getElementsByTagName('main');
    if (mainDom && mainDom.length > 0) {
        mainDom = mainDom[0];
    }
    var mainDomFirstDiv = mainDom ? mainDom.children[0] : null;
    if (mainDomFirstDiv) {
        if (mainDomFirstDiv.clientWidth < 1200) {
            mainDomFirstDiv.style.maxWidth = "calc(100% - 400px)";
            mainDomFirstDiv.style.margin = "0";
        }
        else {
            setDomStyle(mainDomFirstDiv, {
                "width": "calc(100% - 600px)",
                "maxWidth": "1200px",
                "minWidth": "800px",
                "margin": "auto",
                "background": "white",
                "border": "1px solid #c9c7c7",
                "boxShadow": "0 0 3px #b3b3b3"
            });
            var app = document.getElementById("app");
            if (app) { setDomStyle(app, { "background": "aliceblue", }) }
        }
    }
}
function onTocClick(e) {
    var hi = e.target.sourceTag;
    if (hi)
        hi.click();
}
function getMdEditState() {
    sendData("getMarkdownFileChanged:0");
}
function showMarkdownFileChangedSign() {
    var t = document.getElementById('editMdButton');
    if (t != null) {
        t.innerText ="本内容编辑(有更新)"
    }
}

//下面是问题的
var lastOKValue = 0;
var isOKAskLogionQuestion = false;
function sendLoginQuestion() {
    var usr = localStorage.getItem("AgCIM_Desktop_Doc.Usr");
    sendData("GetLoginQuestion:" + usr);
}
function initLoginQuestionDom(quetion) {
    isOKAskLogionQuestion = false;
    var qrs = quetion.substr('GetLoginQuestion'.length + 1).split('$');
    document.getElementById("question").innerText = "【" + qrs[0] + "】、" + qrs[1];
    document.getElementById("qOptionA").innerText = qrs[2];
    document.getElementById("qOptionB").innerText = qrs[3];
    lastOKValue = parseInt(qrs[4])
    document.getElementById("submitQuestion").value = "提交答题";
}
function checkLoginQuestion() {
    var a = document.getElementsByName('questionOption')[0].checked && lastOKValue == 0;
    var b = document.getElementsByName('questionOption')[1].checked && lastOKValue == 1;
    if (a || b) {
        document.getElementById("submitQuestion").value = "答题正确";
        isOKAskLogionQuestion = true;
    }
    else {
        document.getElementById("submitQuestion").value = "答题失败，重新出题";
        sendLoginQuestion();
    }
}

//下面是主页样式
function findIsHomePage() {
    var homePage = document.getElementById('agcim-studio描述');
    if (!homePage)
        return;
    var mainDiv = document.getElementsByTagName("main");
    if (mainDiv && mainDiv.length > 0) {
        mainDiv[0].style.width = "60%";
        mainDiv[0].style.paddingLeft = "20%";
    }

}

//下面是极客的
function findIsJikePage() {
    var h1 = document.getElementsByTagName('h1');
    if (h1.length == 0 || h1[0].id != 'agcim-极客文库') return;
    h1[0].style.display = "none"
    var sideBar = document.getElementsByClassName('sidebar');
    if (sideBar.length > 0) {
        sideBar[0].style.width = "0px";
    }

    var mainDom = document.getElementsByTagName('main')[0];
    setDomStyle(mainDom, {
        "paddingLeft": "0px", "width": "1200px", "margin": "0px auto",
        "background": "white",
        "borderRight": "1px solid rgb(209, 204, 204)",
        "borderLeft": "1px solid rgb(209, 204, 204)"
    });
    var app = document.getElementById('app');
    if (app) { setDomStyle(app, { "background": "aliceblue" }) }
    var jikePageList = document.getElementById('jikePageList');
    if (jikePageList) { setDomStyle(jikePageList, { "background": "none" }) }

    var newButton = document.getElementById("newPage");
    newButton.onclick = function () {
        window.open("cimPaperEditor.html");
    }
    var refreshButton = document.getElementById('refreshButton');
    refreshButton.onclick = function () {
        if (isSocketOff) {
            buildWebSocket();
            setTimeout(function () {
                var search = decodeURI(window.location.search);
                var filter = search.length > 1 ? search.substring(1) : "11";
                sendData("GetJikeFileList:" + filter);
            }, 300)
        }
        else {
            var search = decodeURI(window.location.search);
            var filter = search.length > 1 ? search.substring(1) : "11";
            sendData("GetJikeFileList:" + filter);
        }
    }
    var search = decodeURI(window.location.search);
    var filter = search.length > 1 ? search.substring(1) : "11";
    sendData("GetJikeFileList:" + filter);

}
function initJikePages(edata) {
    //GetJikeFileList:b,cbfile1
    var ul = document.getElementById('jikePageList');
    ul.innerHTML = "";
    ul.style.borderRadius = "10px";
    ul.style.marginTop = "10px";
    if (edata.startsWith("GetJikeFileList:")) {
        var files = edata.substr("GetJikeFileList:".length).split(',');

        var allItems = [];
        for (var i = 0; i < files.length; i++) {
            files[i] = files[i].startsWith("\\") ? files[i].substr(1) : files[i];
            var userNameIndex = files[i].indexOf('_');
            var userName = "";
            var fileName = files[i];
            var createTime = "";
            if (userNameIndex > 0) {
                userName = files[i].substr(0, userNameIndex);
                fileName = files[i].substr(userNameIndex + 1);
                var t2 = fileName.indexOf("*")
                if (t2 >= 0) {
                    createTime = fileName.substr(t2 + 1);
                    fileName = fileName.substr(0, t2 - 5);
                }
            }
            allItems.push({
                "userName": userName,
                "fileName": fileName,
                "createTime": createTime,
                "createTimeObj": new Date(createTime).getTime()
            })
        }
        allItems.sort((a, b) => { return (a.createTimeObj > b.createTimeObj) ? -1 : ((a.createTimeObj < b.createTimeObj) ? 1 : 0) });

        for (var i = 0; i < allItems.length; i++) {
            var userName = allItems[i].userName;
            var fileName = allItems[i].fileName;
            var createTime = allItems[i].createTime;

            var li = document.createElement('li');
            //li.innerText = fileName;
            li.tagData = userName + "_" + fileName;
            setDomStyle(li, {
                "padding": "2px 10px 2px 6px",
                "background": "repeating-linear-gradient(0deg, rgba(156, 181, 225, 0.62), rgba(188, 180, 235, 0.36), rgba(150, 153, 225, 0.72) 200px)",
                "margin": "3px",
                "marginBottom": "10px",
                "borderRadius": "10px",
                "fontSize": "16px",
                "border": "1px solid #c0c0c5",
                "box-shadow": "1px 1px #9e8787"
            });

            var span5 = document.createElement('span');
            if (userName.startsWith("编程技术")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(156 225 206 / 62%), rgb(180 235 219 / 36%), rgb(150 225 201 / 72%) 200px)" })
                span5.innerHTML = '<svg class="icon" style="width: 2.25em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1280 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4075"><path d="M1079.381333 0a170.666667 170.666667 0 0 1 170.666667 170.666667v682.666666a170.666667 170.666667 0 0 1-170.666667 170.666667h-853.333333a170.666667 170.666667 0 0 1-170.666667-170.666667V170.666667a170.666667 170.666667 0 0 1 170.666667-170.666667h853.333333z m-215.04 768H423.338667v85.333333h440.832V768zM300.373333 225.792l-60.330666 60.416L433.493333 479.573333 240.042667 673.28l60.330666 60.330667 253.866667-253.866667L300.373333 225.792z" fill="#536076" p-id="4076"></path></svg>';
            } else if (userName.startsWith("BUG")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(225 156 204 / 62%), rgb(235 180 234 / 36%), rgb(225 150 224 / 72%) 200px)" });
                span5.innerHTML = '<svg class="icon" style="width: 1.8em;height: 1.8em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8356"><path d="M896 0H128A128 128 0 0 0 0 128v768A128 128 0 0 0 128 1024h768A128 128 0 0 0 1024 896V128A128 128 0 0 0 896 0z m-143.639273 313.576727l23.784728-23.179636c17.826909-11.636364 41.658182-11.636364 53.527272 0 17.826909 17.361455 17.826909 40.587636 5.957818 52.177454-5.771636 5.585455-12.101818 11.170909-18.711272 16.989091-13.870545 12.241455-28.672 25.274182-40.773818 40.96 0-34.769455-5.957818-63.767273-23.738182-86.946909z m-552.96-23.179636c17.780364-17.408 41.565091-17.408 59.438546 0 5.957818 5.818182 11.869091 11.636364 17.826909 23.179636-17.826909 28.997818-29.742545 57.995636-23.784727 86.993455l-53.527273-52.177455c-17.826909-17.408-17.826909-40.634182 0-57.995636z m-29.789091 307.339636c-23.738182 0-41.611636-17.408-41.611636-34.769454 0-23.226182 11.915636-40.634182 29.742545-46.405818h89.181091v81.175272h-77.265454z m124.881455 226.210909c-17.826909 11.543273-41.611636 11.543273-53.527273-5.818181-11.869091-17.408-17.826909-40.634182 0-52.224l35.700364-34.769455c8.936727 11.589818 16.337455 23.179636 23.784727 34.769455 7.447273 11.636364 14.894545 23.226182 23.784727 34.816-5.957818 2.885818-10.426182 7.261091-14.894545 11.636363a57.902545 57.902545 0 0 1-14.848 11.543273z m184.32-353.745454c5.957818 0 5.957818 336.337455 0 359.517091-47.569455-5.818182-65.396364-11.636364-101.050182-40.587637-41.658182-34.816-71.354182-81.221818-83.269818-133.399272-2.978909-11.636364-2.978909-24.669091-2.978909-37.701819s0-26.065455-2.978909-37.701818V406.388364c0-28.997818 11.915636-52.224 29.789091-69.632-0.046545 0 5.911273-5.771636 11.869091 0 17.826909 11.636364 37.143273 23.226182 56.506181 34.816 19.316364 11.636364 38.632727 23.179636 56.459637 34.816 23.784727 17.361455 35.653818 40.587636 35.653818 63.767272z m0-116.037818c-17.826909-11.589818-37.143273-23.179636-56.459636-34.769455-19.316364-11.636364-38.632727-23.226182-56.506182-34.816l-5.957818-5.818182C359.889455 203.403636 419.374545 139.636364 502.690909 128h17.826909c83.223273 0 154.577455 69.585455 160.581818 150.807273 0 0 0 5.771636-6.004363 5.771636-20.805818 11.636364-40.122182 23.179636-59.438546 34.769455-19.316364 11.636364-38.632727 23.226182-59.485091 34.816a63.767273 63.767273 0 0 1-77.265454 0z m220.020364 388.561454c-41.611636 52.177455-71.307636 81.175273-130.792728 86.993455h-23.784727c0-5.213091 1.210182-76.055273 2.513455-154.065455 1.629091-95.511273 3.444364-201.728 3.444363-211.316363 0-34.769455 11.869091-57.949091 41.611637-75.403637 17.826909-11.589818 35.700364-21.736727 53.527272-31.883636a1038.894545 1038.894545 0 0 0 53.527273-31.883637c3.630545-3.584 5.026909-2.746182 6.981818-1.536 1.210182 0.698182 2.606545 1.536 4.887273 1.536 17.826909 17.408 29.742545 40.587636 29.742545 69.585455v231.982545c0 40.587636-17.873455 81.175273-41.658181 115.991273z m95.138909 75.403637c-11.869091 17.361455-35.653818 17.361455-53.527273 5.771636-8.285091-4.049455-13.637818-10.891636-18.152727-16.663273a68.468364 68.468364 0 0 0-5.585455-6.516363c8.890182-11.636364 16.290909-23.179636 23.738182-34.816 7.447273-11.589818 14.894545-23.179636 23.831273-34.769455l35.653818 34.769455c11.915636 11.636364 5.957818 40.634182-5.957818 52.224z m101.096727-260.980364c5.957818 23.179636-17.826909 40.587636-41.611636 40.587636h-77.312v-81.175272h77.265454c23.831273 0 41.658182 17.408 41.658182 40.587636z" fill="#E13C39" p-id="8357"></path></svg>';
            } else if (userName.startsWith("页面设计")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(144 176 232 / 62%), rgb(159 150 213 / 36%), rgb(99 103 207 / 72%) 200px)" });
                span5.innerHTML = '<svg class="icon" style="width: 2em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13568"><path d="M298.40118557 466.69116075L84.80236999 253.09234517 253.09234517 84.80236999l213.59881558 213.59881558L512 253.09234517 253.09234517-5.81530851-5.81530851 253.09234517l258.90765368 258.90765483zM725.59881443 557.30883925l213.59881558 213.59881558-168.28997518 168.28997518-213.59881558-213.59881558-45.30883925 45.3088404 258.90765483 258.90765368 258.90765368-258.90765368-258.90765368-258.90765483z" fill="#ff6600" p-id="13569"></path><path d="M123.3148837 301.76698482l118.96806741-118.96806741 45.7619274 45.76192853-118.96806628 118.96806627zM250.2443611 434.65133853l-45.76192739-45.76192854L323.51522816 269.92134371l45.76192739 45.7619274zM589.34866147 767.80076259l118.96806742-118.96806741 45.7619274 45.76192853-118.96806628 118.96806628zM673.49364963 851.94574962l118.96806742-118.96806628 45.7619274 45.7619274-118.96806742 118.96806741z" fill="#ff6600" p-id="13570"></path><path d="M770.90765483 84.80236999L939.19763001 253.09234517 253.09234517 939.19763001 84.80236999 770.90765483 770.90765483 84.80236999M770.90765483-5.81530851L-5.81530851 770.90765483l258.90765368 258.90765368L1029.81530851 253.09234517l-258.90765368-258.90765368z" fill="#ff6600" p-id="13571"></path><path d="M-5.81530851 770.90765483h64.7269137v258.90765368H-5.81530851z" fill="#ff6600" p-id="13572"></path><path d="M-5.81530851 965.08839481h258.90765368v64.7269137H-5.81530851z" fill="#ff6600" p-id="13573"></path></svg>'
            } else if (userName.startsWith("技术推荐")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(144 176 232 / 62%), rgb(159 150 213 / 36%), rgb(99 103 207 / 72%) 200px)" });
                span5.innerHTML = '<svg class="icon" style="width: 2em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14739"><path d="M871.706 604.383a28.798 28.798 0 0 0-0.424-2.848c-10.778-53.757-30.987-96.52-60.068-127.102-32.134-33.794-75.04-51.656-124.078-51.656h-81.33V275.923c0-32.759-7.763-61.089-22.449-81.929-18.111-25.701-45.438-39.286-79.025-39.286-32.289 0-59.422 12.159-80.643 36.14-15.932 18.003-28.464 42.428-39.44 76.865-0.122 0.384-0.237 0.77-0.342 1.158-0.104 0.378-10.524 38.298-26.585 77.728-26.383 64.768-43.714 75-46.197 76.177h-42.242c-2.111 0-4.164 0.241-6.146 0.671a28.941 28.941 0 0 0-6.146-0.671 28.726 28.726 0 0 0-16.068 4.887 114.914 114.914 0 0 0-27.945-3.444c-63.359 0-114.721 51.362-114.721 114.721v304.481c0 63.359 51.363 114.721 114.721 114.721 12.383 0 24.297-1.986 35.47-5.616 2.7 0.835 5.568 1.287 8.542 1.287 2.236 0 4.404-0.279 6.494-0.76 2.09 0.481 4.257 0.76 6.494 0.76h433.431c62.209 0 125.171-30.111 160.402-76.711 25.787-34.109 34.238-74.412 23.931-113.787l-15.636-158.932z m-54.338 237.91c-23.949 31.676-70.974 53.8-114.359 53.8H314.484c8.172-15.777 12.816-33.677 12.816-52.671V538.941c0-21.349-5.851-41.324-16.008-58.443h0.655c35.22 0 65.717-33.439 95.976-105.232 17.999-42.705 29.879-84.74 31.493-90.56 19.211-59.972 39.851-72.277 64.916-72.277 29.032 0 43.753 21.362 43.753 63.494v175.715c0 15.94 12.922 28.861 28.861 28.861h110.191c82.849 0 114.952 70.898 127.27 131.001l15.73 159.878a28.91 28.91 0 0 0 0.954 5.042c6.525 23.035 1.908 45.197-13.723 65.873zM931.512 159.915a14.43 14.43 0 0 0-11.649-9.821l-74.355-10.804-33.253-67.377a14.431 14.431 0 0 0-25.88 0l-33.253 67.377-74.355 10.804a14.43 14.43 0 0 0-7.997 24.614l53.804 52.446-12.701 74.055a14.429 14.429 0 0 0 20.937 15.212l66.505-34.964 66.505 34.964a14.414 14.414 0 0 0 6.714 1.657 14.43 14.43 0 0 0 14.224-16.87l-12.701-74.055 53.804-52.446a14.43 14.43 0 0 0 3.651-14.792z" fill="#E75934" p-id="14740"></path></svg>'
            } else if (userName.startsWith("操作技巧")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(206 220 215), rgb(172 169 186 / 36%), rgba(150, 153, 225, 0.72) 200px)" });
                span5.innerHTML = '<svg class="icon" style="width: 2em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18060"><path d="M810.749 1023.965c-117.606 0-213.285-95.68-213.285-213.285V682.61H426.737v127.97c0 117.606-95.679 213.285-213.284 213.285C95.847 1023.865 0.168 928.185 0.168 810.58c0-117.606 95.68-213.285 213.285-213.285h127.97V426.67h-128.07C95.748 426.669 0.07 330.989 0.07 213.384 0.069 95.78 95.748 0.1 213.353 0.1 330.96 0.1 426.638 95.779 426.638 213.384v127.97h170.627v-128.07C597.265 95.68 692.945 0 810.55 0c117.605 0 213.284 95.679 213.284 213.284 0 117.606-95.68 213.285-213.284 213.285H682.679v170.627h127.97c117.606 0 213.285 95.68 213.285 213.285 0.1 117.805-95.58 213.484-213.185 213.484zM682.679 682.61v127.97c0 70.564 57.407 127.971 127.97 127.971s127.97-57.407 127.97-127.97S881.213 682.61 810.65 682.61H682.68z m-469.326 0c-70.563 0-127.97 57.407-127.97 127.97s57.407 127.971 127.97 127.971 127.97-57.407 127.97-127.97V682.61h-127.97z m213.384-85.314h170.628V426.67H426.737v170.627zM682.68 341.355h127.97c70.563 0 127.97-57.408 127.97-127.97S881.313 85.313 810.75 85.313s-127.97 57.407-127.97 127.97v128.07zM213.353 85.314c-70.563 0-127.97 57.407-127.97 127.97s57.407 127.971 127.97 127.971h127.97v-127.97c0.1-70.564-57.407-127.971-127.97-127.971z" p-id="18061"></path></svg>'
            } else if (userName.startsWith("软件部署")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(144 176 232 / 62%), rgb(159 150 213 / 36%), rgb(99 103 207 / 72%) 200px)" });
                span5.innerHTML = '<svg class="icon" style="width: 2em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18899"><path d="M106.386651 217.051429l343.771429-202.605715a102.985143 102.985143 0 0 1 105.216 0l343.808 202.605715a105.691429 105.691429 0 0 1 51.529143 91.136v407.478857a106.386286 106.386286 0 0 1-51.529143 91.099428l-343.771429 202.605715a102.985143 102.985143 0 0 1-105.216 0l-343.881142-202.605715A105.691429 105.691429 0 0 1 54.857509 715.702857V308.187429c0-37.376 19.565714-71.862857 51.529142-91.136z m769.828572 494.628571V312.137143a46.921143 46.921143 0 0 0-22.381714-40.192L526.848366 73.874286a45.129143 45.129143 0 0 0-47.616 0L152.247223 271.945143c-13.970286 8.557714-22.454857 23.771429-22.381714 40.192V711.68c0 16.457143 8.411429 31.670857 22.381714 40.192l326.985143 198.107429c14.592 9.069714 33.024 9.069714 47.616 0l326.948571-198.107429c13.824-8.740571 22.235429-23.881143 22.418286-40.192z" fill="#2C9CFA" p-id="18900"></path><path d="M500.224366 200.923429l253.403428 148.48-253.44 148.443428-253.366857-148.48z" fill="#2C9CFA" p-id="18901"></path><path d="M666.22208 454.326857l87.405714 51.2-253.44 148.443429-253.366857-148.48 87.405714-51.2 165.997715 97.28z" fill="#2C9CFA" p-id="18902"></path><path d="M666.22208 607.890286l87.405714 51.2-253.44 148.48-253.366857-148.48 87.405714-51.2 165.997715 97.28z" fill="#2C9CFA" p-id="18903"></path></svg>'
            } li.appendChild(span5);

            var span = document.createElement('span');
            setDomStyle(span, { fontSize: "14px", paddingLeft: "12px", color: "rgb(81 102 217)", fontWeight: "bold", "textIndent": "10px" })
            span.innerText = userName;
            li.appendChild(span);


            var span3 = document.createElement('span');
            span3.innerText = createTime;
            setDomStyle(span3, { fontSize: "12px", paddingLeft: "12px", color: "rgb(127 127 127)", fontWeight: "bold" })
            li.appendChild(span3);


            var span4 = document.createElement('span');
            span4.innerText = "";
            setDomStyle(span4, { fontSize: "12px", paddingLeft: "18px", color: "rgb(137 5 5)", fontWeight: "bold" })
            li.appendChild(span4);

            var br = document.createElement('br');
            li.appendChild(br);


            var span2 = document.createElement('span');
            span2.innerText = fileName;
            setDomStyle(span2, { fontSize: "22px", paddingLeft: "10px", color: "rgb(39 103 23)", fontWeight: "bold" })
            li.appendChild(span2);

            li.onclick = function (e) {
                var etag = e.target
                if (e.target.tagName != "LI") {
                    etag = e.target.parentNode
                }
                window.open("http://{NGURL}/AgCIM%E6%8A%80%E6%9C%AF%E6%9C%88%E5%88%8A/jikepages/" + etag.tagData + ".html");
                var pageName = etag.tagData;
                var pageName1 = pageName.split('\\');
                var t = etag.children.length > 2 ? etag.children[3].innerText.substring(4) : "0";
                t = t == '' ? "0" : t;
                showJikePageVisitCount(parseInt(t) + 1, pageName1[pageName1.length - 1]);
            }
            ul.appendChild(li);
        }

        listCatagory(allItems);
    }

    myWSClient.send("GetPageViewCount:JikeAll");
}
function showJikePageVisitCount(count, pageName) {
    var lis = document.getElementsByTagName('li');
    for (var i = 0; i < lis.length; i++) {
        if (lis[i].tagData) {
            var bs = lis[i].tagData.split('\\');
            if (bs[bs.length - 1] == pageName) {
                if (lis[i].children.length == 6)
                    lis[i].children[3].innerText = "访问量:" + count;
                break;
            }
        }
    }
}
function showJikePageVisitCountMulti() {
    var lis = document.getElementsByTagName('li');
    var dir = {}
    for (var i = 0; i < lis.length; i++) {
        var qs = lis[i].tagData;
        if (qs) {
            var bs = qs.split('\\');
            dir[bs[bs.length - 1]] = lis[i];
        }
    }
    return dir;
}
function setDomStyle(dom, styles) {
    for (var name in styles) {
        dom.style[name] = styles[name];
    }
}
function listCatagory(allItems) {
    var allCatagory = { "所有": [] };
    for (var i = 0; i < allItems.length; i++) {
        var ks = allItems[i].userName.split('\\');
        if (ks.length < 2) { continue; }
        if (!allCatagory[ks[0]]) {
            allCatagory[ks[0]] = ["所有"];
        }
        if (allCatagory[ks[0]].indexOf(ks[1]) < 0)
            allCatagory[ks[0]].push(ks[1]);
    }
    var buttonDiv = document.getElementById('catagoryList');

    var firstCatagory = document.getElementById('firstCatagory');
    if (firstCatagory == null) {
        firstCatagory = document.createElement('div');
        firstCatagory.id = "firstCatagory";
        buttonDiv.appendChild(firstCatagory);
    }
    else {
        firstCatagory.innerHTML = "";
    }

    var secondCatagory = document.getElementById('secondCatagory');
    if (secondCatagory == null) {
        secondCatagory = document.createElement('div');
        secondCatagory.id = "secondCatagory";
        buttonDiv.appendChild(secondCatagory);
    }
    else {
        secondCatagory.innerHTML = "";
    }


    var topFilterHandler = function (e) {
        var btn2 = e.target;
        var secondCatagory = document.getElementById('secondCatagory');
        secondCatagory.innerHTML = "";
        if (btn2.tagData.items.length == 0) {
            childFilterHandler({ target: { tagData: "" } })
        }
        for (var j = 0; j < btn2.tagData.items.length; j++) {
            var btn3 = document.createElement('button');
            btn3.value = btn2.tagData.items[j];
            btn3.useType = "catagory";
            btn3.tagData = btn2.tagData.name + (btn2.tagData.items[j] == "所有" ? "" : "\\" + btn2.tagData.items[j]);
            btn3.innerText = btn2.tagData.items[j];
            secondCatagory.appendChild(btn3);
            btn3.onclick = childFilterHandler;
            setDomStyle(btn3, {
                "background": "#00BCD4",
                "padding": "2px 10px",
                "borderRradius": "10px",
                "color": "white",
                "border": "0px",
                "margin": "2px 4px"
            });
        }

        childFilterHandler({ target: { tagData: btn2.tagData.name } })
    }
    var childFilterHandler = function (e) {
        var tagFilter = e.target.tagData;
        if (tagFilter == "所有") { tagFilter = ""; }
        var lis = document.getElementsByTagName('li');
        for (var k = 0; k < lis.length; k++) {
            if (!lis[k].tagData)
                continue;
            if (lis[k].tagData.startsWith(tagFilter)) {
                lis[k].style.display = ""
            } else {
                lis[k].style.display = "none"
            }
        }
    }
    for (var name in allCatagory) {
        var btn = document.createElement('button');
        btn.useType = "catagory";
        btn.tagData = { "name": name, "items": allCatagory[name] };
        btn.innerText = name;
        setDomStyle(btn, {
            "background": "#157ed2",
            "padding": "2px 10px",
            "color": "white",
            "border": "0px",
            "margin": "2px 4px"
        });
        firstCatagory.appendChild(btn);

        btn.onclick = topFilterHandler;
    }


    var newPageBtn = document.getElementById('newPage');
    setDomStyle(newPageBtn, {
        "background": "rgb(26 48 169)",
        "padding": "3px 26px",
        "borderRadius": "21px",
        "color": "white",
        "border": "0px",
        "margin": "2px 4px"
    });
    setDomStyle(document.getElementById('refreshButton'), {
        "background": "rgb(26 48 169)",
        "padding": "3px 26px",
        "borderRadius": "21px",
        "color": "white",
        "border": "0px",
        "margin": "2px 4px"
    });
    buttonDiv.insertBefore(newPageBtn.parentNode, buttonDiv.firstChild)
    setDomStyle(buttonDiv, {
        "background": "repeating-linear-gradient(45deg, #e9f5ff, #e7f0fe 100px)",
        "boxShadow": "1px 1px 7px 0px #e7f0fe",
        "padding": "10px",
        "borderRadius": "10px",
        "position": "fixed",
        "width": "1080px",
        "border": "1px solid rgb(192, 192, 197)",
        "right": "calc(50% - 550px)"
    })
    setDomStyle(document.getElementById('jikePageList').parentNode, {
        "paddingTop": "106px"
    })
}

//下面是页面计数的
function getPageVisitCount() {
    var pageName = document.head.getElementsByTagName("title")[0].innerHTML.split('|')[0];
    sendData("GetPageViewCount:" + pageName);
}
function responsePageVisitCount(str) {
    var fh = str.indexOf(':');
    var strData = str.substr(fh + 1);
    if (strData.startsWith('JikeAll')) {
        var fd2 = strData.substr(strData.indexOf(',') + 1).split('#');
        var dirInfo = showJikePageVisitCountMulti();
        for (var i = 0; i < fd2.length; i++) {
            var qr = fd2[i];
            if (qr.length < 5) {
                continue;
            }
            var t = qr.indexOf(',');
            var count = qr.substr(0, t);
            var pageName = qr.substr(t + 1).split(',')[0];
            if (pageName.startsWith('Jike-')) {
                var pageName2 = pageName.substr(5);
                var pageName3 = pageName2.split('\\');
                var pageName4 = pageName3[pageName3.length - 1];
                var li = dirInfo[pageName4]
                if (li) {
                    if (li.children.length == 6) {
                        li.children[3].innerText = "访问量:" + count;
                    }
                }
            }
        }
        return;
    }
    var t = strData.indexOf(',');
    var count = strData.substr(0, t);
    var pageName = strData.substr(t + 1).split(',')[0];
    if (pageName.startsWith('Jike-')) {
        showJikePageVisitCount(count, pageName.substr(5));
    }
    else {
        var div = document.createElement('div')
        div.id = 'pageVisitCount';
        div.innerText = "本页面总访问次数:" + count;
        setDomStyle(div, { position: "fixed", bottom: "5px", right: "8px", fontSize: "12px", background: "#e3b271", color: "#0a074c" })
        var mainDom = document.getElementsByTagName('main')
        if (mainDom && mainDom.length > 0) mainDom = mainDom[0];
        if (mainDom) mainDom.appendChild(div);
    }
}

//下面是搜索的
function bindSearch() {
    var sb = document.getElementsByClassName('search-box')[0];
    sb.onchange = function name(params) {
        var txt = sb.childNodes[0].value;
        if (txt.length == 0) {
            var v = document.getElementById('searchPanel');
            if (v) v.parentNode.removeChild(v);
            return;
        }
        sendData("SearchMainContent:" + txt)
    }
}
function showSearchPanel(str) {
    var v = document.getElementById('searchPanel');
    if (v) v.parentNode.removeChild(v);

    var fh = str.indexOf(':');
    var strData = str.substr(fh + 1);

    var div = document.createElement('div');
    div.id = "searchPanel";
    setDomStyle(div, {
        "position": "absolute",
        "zIndex": "100",
        "width": "50%",
        "top": "60px",
        "left": "calc(50% - 200px)",
        "background": "aliceblue",
        "border": "1px solid #969696",
        "padding": "10px",
        "borderRadius": "10px"
    });
    var vs = strData.split(',');
    var str = "<div><ol>";
    for (var i = 0; i < vs.length; i++) {
        var khc = vs[i].split(';');
        str += "<li href='" + khc[1] + "''>"
        str += "<div>" + khc[0] + "</div>"
        str += "<div style='font-size: 12px;color: #6f6d6d;padding: 5px 2px; '>" + khc[2] + "</div>"
        str += "</li>";
    }
    str += "</ol></div>";
    div.innerHTML = str;
    document.body.appendChild(div);
    var lis = div.getElementsByTagName('li');
    for (var j = 0; j < lis.length; j++) {
        lis[j].onclick = onSearchItemClick;
    }
}
function onSearchItemClick(e) {
    var dom = e.target;
    if (dom.tagName != "LI") {
        dom = dom.parentElement;
    }
    var href = dom.attributes['href'].value;
    window.open(href);
}

//下面是应用示范工程的
function findIsCAPPage() {
    var h1 = document.getElementsByTagName('h1');
    if (h1.length == 0 || h1[0].id != '攻关部应用示范工程') return;
    h1[0].style.display = "none"
    document.getElementsByClassName('sidebar')[0].style.width = "0px";
    var mainDom = document.getElementsByTagName('main')[0];
    setDomStyle(mainDom, {
        "paddingLeft": "0px", "width": "1200px", "margin": "0px auto",
        "background": "white",
        "borderRight": "1px solid rgb(209, 204, 204)",
        "borderLeft": "1px solid rgb(209, 204, 204)"
    });
    var app = document.getElementById('app');
    if (app) { setDomStyle(app, { "background": "aliceblue" }) }
    var jikePageList = document.getElementById('capList');
    if (jikePageList) { setDomStyle(jikePageList, { "background": "none" }) }

    var search = decodeURI(window.location.search);
    var filter = search.length > 1 ? search.substring(1) : "11";
    sendData("GetCAPFileList:" + filter);
}
function initCAPPages(edata) {
    //GetJikeFileList:b,cbfile1
    var ul = document.getElementById('capList');
    ul.innerHTML = "";
    ul.style.borderRadius = "10px";
    ul.style.marginTop = "10px";
    if (edata.startsWith("GetCAPFileList:")) {
        var files = edata.substr("GetCAPFileList:".length).split(',');

        var allItems = [];
        for (var i = 0; i < files.length; i++) {
            files[i] = files[i].startsWith("\\") ? files[i].substr(1) : files[i];
            var fileNames = files[i].split('*');
            allItems.push({
                "fileName": fileNames[0],
                "createTime": fileNames[1],
                "createTimeObj": new Date(createTime).getTime(),
                "description": fileNames[2]
            })
        }

        for (var i = 0; i < allItems.length; i++) {
            var userName = allItems[i].description;
            var fileName = allItems[i].fileName;
            var createTime = allItems[i].createTime;

            var li = document.createElement('li');
            //li.innerText = fileName;
            li.tagData = fileName;
            setDomStyle(li, {
                "padding": "2px 10px 2px 6px",
                "background": "repeating-linear-gradient(0deg, rgba(156, 181, 225, 0.62), rgba(188, 180, 235, 0.36), rgba(150, 153, 225, 0.72) 200px)",
                "margin": "3px",
                "marginBottom": "10px",
                "borderRadius": "10px",
                "fontSize": "16px",
                "border": "1px solid #c0c0c5",
                "box-shadow": "1px 1px #9e8787"
            });

            var span5 = document.createElement('span');
            if (userName.startsWith("编程技术")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(156 225 206 / 62%), rgb(180 235 219 / 36%), rgb(150 225 201 / 72%) 200px)" })
                span5.innerHTML = '<svg class="icon" style="width: 2.25em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1280 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4075"><path d="M1079.381333 0a170.666667 170.666667 0 0 1 170.666667 170.666667v682.666666a170.666667 170.666667 0 0 1-170.666667 170.666667h-853.333333a170.666667 170.666667 0 0 1-170.666667-170.666667V170.666667a170.666667 170.666667 0 0 1 170.666667-170.666667h853.333333z m-215.04 768H423.338667v85.333333h440.832V768zM300.373333 225.792l-60.330666 60.416L433.493333 479.573333 240.042667 673.28l60.330666 60.330667 253.866667-253.866667L300.373333 225.792z" fill="#536076" p-id="4076"></path></svg>';
            } else if (userName.startsWith("BUG")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(225 156 204 / 62%), rgb(235 180 234 / 36%), rgb(225 150 224 / 72%) 200px)" });
                span5.innerHTML = '<svg class="icon" style="width: 1.8em;height: 1.8em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8356"><path d="M896 0H128A128 128 0 0 0 0 128v768A128 128 0 0 0 128 1024h768A128 128 0 0 0 1024 896V128A128 128 0 0 0 896 0z m-143.639273 313.576727l23.784728-23.179636c17.826909-11.636364 41.658182-11.636364 53.527272 0 17.826909 17.361455 17.826909 40.587636 5.957818 52.177454-5.771636 5.585455-12.101818 11.170909-18.711272 16.989091-13.870545 12.241455-28.672 25.274182-40.773818 40.96 0-34.769455-5.957818-63.767273-23.738182-86.946909z m-552.96-23.179636c17.780364-17.408 41.565091-17.408 59.438546 0 5.957818 5.818182 11.869091 11.636364 17.826909 23.179636-17.826909 28.997818-29.742545 57.995636-23.784727 86.993455l-53.527273-52.177455c-17.826909-17.408-17.826909-40.634182 0-57.995636z m-29.789091 307.339636c-23.738182 0-41.611636-17.408-41.611636-34.769454 0-23.226182 11.915636-40.634182 29.742545-46.405818h89.181091v81.175272h-77.265454z m124.881455 226.210909c-17.826909 11.543273-41.611636 11.543273-53.527273-5.818181-11.869091-17.408-17.826909-40.634182 0-52.224l35.700364-34.769455c8.936727 11.589818 16.337455 23.179636 23.784727 34.769455 7.447273 11.636364 14.894545 23.226182 23.784727 34.816-5.957818 2.885818-10.426182 7.261091-14.894545 11.636363a57.902545 57.902545 0 0 1-14.848 11.543273z m184.32-353.745454c5.957818 0 5.957818 336.337455 0 359.517091-47.569455-5.818182-65.396364-11.636364-101.050182-40.587637-41.658182-34.816-71.354182-81.221818-83.269818-133.399272-2.978909-11.636364-2.978909-24.669091-2.978909-37.701819s0-26.065455-2.978909-37.701818V406.388364c0-28.997818 11.915636-52.224 29.789091-69.632-0.046545 0 5.911273-5.771636 11.869091 0 17.826909 11.636364 37.143273 23.226182 56.506181 34.816 19.316364 11.636364 38.632727 23.179636 56.459637 34.816 23.784727 17.361455 35.653818 40.587636 35.653818 63.767272z m0-116.037818c-17.826909-11.589818-37.143273-23.179636-56.459636-34.769455-19.316364-11.636364-38.632727-23.226182-56.506182-34.816l-5.957818-5.818182C359.889455 203.403636 419.374545 139.636364 502.690909 128h17.826909c83.223273 0 154.577455 69.585455 160.581818 150.807273 0 0 0 5.771636-6.004363 5.771636-20.805818 11.636364-40.122182 23.179636-59.438546 34.769455-19.316364 11.636364-38.632727 23.226182-59.485091 34.816a63.767273 63.767273 0 0 1-77.265454 0z m220.020364 388.561454c-41.611636 52.177455-71.307636 81.175273-130.792728 86.993455h-23.784727c0-5.213091 1.210182-76.055273 2.513455-154.065455 1.629091-95.511273 3.444364-201.728 3.444363-211.316363 0-34.769455 11.869091-57.949091 41.611637-75.403637 17.826909-11.589818 35.700364-21.736727 53.527272-31.883636a1038.894545 1038.894545 0 0 0 53.527273-31.883637c3.630545-3.584 5.026909-2.746182 6.981818-1.536 1.210182 0.698182 2.606545 1.536 4.887273 1.536 17.826909 17.408 29.742545 40.587636 29.742545 69.585455v231.982545c0 40.587636-17.873455 81.175273-41.658181 115.991273z m95.138909 75.403637c-11.869091 17.361455-35.653818 17.361455-53.527273 5.771636-8.285091-4.049455-13.637818-10.891636-18.152727-16.663273a68.468364 68.468364 0 0 0-5.585455-6.516363c8.890182-11.636364 16.290909-23.179636 23.738182-34.816 7.447273-11.589818 14.894545-23.179636 23.831273-34.769455l35.653818 34.769455c11.915636 11.636364 5.957818 40.634182-5.957818 52.224z m101.096727-260.980364c5.957818 23.179636-17.826909 40.587636-41.611636 40.587636h-77.312v-81.175272h77.265454c23.831273 0 41.658182 17.408 41.658182 40.587636z" fill="#E13C39" p-id="8357"></path></svg>';
            } else if (userName.startsWith("页面设计")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(144 176 232 / 62%), rgb(159 150 213 / 36%), rgb(99 103 207 / 72%) 200px)" });
                span5.innerHTML = '<svg class="icon" style="width: 2em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13568"><path d="M298.40118557 466.69116075L84.80236999 253.09234517 253.09234517 84.80236999l213.59881558 213.59881558L512 253.09234517 253.09234517-5.81530851-5.81530851 253.09234517l258.90765368 258.90765483zM725.59881443 557.30883925l213.59881558 213.59881558-168.28997518 168.28997518-213.59881558-213.59881558-45.30883925 45.3088404 258.90765483 258.90765368 258.90765368-258.90765368-258.90765368-258.90765483z" fill="#ff6600" p-id="13569"></path><path d="M123.3148837 301.76698482l118.96806741-118.96806741 45.7619274 45.76192853-118.96806628 118.96806627zM250.2443611 434.65133853l-45.76192739-45.76192854L323.51522816 269.92134371l45.76192739 45.7619274zM589.34866147 767.80076259l118.96806742-118.96806741 45.7619274 45.76192853-118.96806628 118.96806628zM673.49364963 851.94574962l118.96806742-118.96806628 45.7619274 45.7619274-118.96806742 118.96806741z" fill="#ff6600" p-id="13570"></path><path d="M770.90765483 84.80236999L939.19763001 253.09234517 253.09234517 939.19763001 84.80236999 770.90765483 770.90765483 84.80236999M770.90765483-5.81530851L-5.81530851 770.90765483l258.90765368 258.90765368L1029.81530851 253.09234517l-258.90765368-258.90765368z" fill="#ff6600" p-id="13571"></path><path d="M-5.81530851 770.90765483h64.7269137v258.90765368H-5.81530851z" fill="#ff6600" p-id="13572"></path><path d="M-5.81530851 965.08839481h258.90765368v64.7269137H-5.81530851z" fill="#ff6600" p-id="13573"></path></svg>'
            } else if (userName.startsWith("技术推荐")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(144 176 232 / 62%), rgb(159 150 213 / 36%), rgb(99 103 207 / 72%) 200px)" });
                span5.innerHTML = '<svg class="icon" style="width: 2em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14739"><path d="M871.706 604.383a28.798 28.798 0 0 0-0.424-2.848c-10.778-53.757-30.987-96.52-60.068-127.102-32.134-33.794-75.04-51.656-124.078-51.656h-81.33V275.923c0-32.759-7.763-61.089-22.449-81.929-18.111-25.701-45.438-39.286-79.025-39.286-32.289 0-59.422 12.159-80.643 36.14-15.932 18.003-28.464 42.428-39.44 76.865-0.122 0.384-0.237 0.77-0.342 1.158-0.104 0.378-10.524 38.298-26.585 77.728-26.383 64.768-43.714 75-46.197 76.177h-42.242c-2.111 0-4.164 0.241-6.146 0.671a28.941 28.941 0 0 0-6.146-0.671 28.726 28.726 0 0 0-16.068 4.887 114.914 114.914 0 0 0-27.945-3.444c-63.359 0-114.721 51.362-114.721 114.721v304.481c0 63.359 51.363 114.721 114.721 114.721 12.383 0 24.297-1.986 35.47-5.616 2.7 0.835 5.568 1.287 8.542 1.287 2.236 0 4.404-0.279 6.494-0.76 2.09 0.481 4.257 0.76 6.494 0.76h433.431c62.209 0 125.171-30.111 160.402-76.711 25.787-34.109 34.238-74.412 23.931-113.787l-15.636-158.932z m-54.338 237.91c-23.949 31.676-70.974 53.8-114.359 53.8H314.484c8.172-15.777 12.816-33.677 12.816-52.671V538.941c0-21.349-5.851-41.324-16.008-58.443h0.655c35.22 0 65.717-33.439 95.976-105.232 17.999-42.705 29.879-84.74 31.493-90.56 19.211-59.972 39.851-72.277 64.916-72.277 29.032 0 43.753 21.362 43.753 63.494v175.715c0 15.94 12.922 28.861 28.861 28.861h110.191c82.849 0 114.952 70.898 127.27 131.001l15.73 159.878a28.91 28.91 0 0 0 0.954 5.042c6.525 23.035 1.908 45.197-13.723 65.873zM931.512 159.915a14.43 14.43 0 0 0-11.649-9.821l-74.355-10.804-33.253-67.377a14.431 14.431 0 0 0-25.88 0l-33.253 67.377-74.355 10.804a14.43 14.43 0 0 0-7.997 24.614l53.804 52.446-12.701 74.055a14.429 14.429 0 0 0 20.937 15.212l66.505-34.964 66.505 34.964a14.414 14.414 0 0 0 6.714 1.657 14.43 14.43 0 0 0 14.224-16.87l-12.701-74.055 53.804-52.446a14.43 14.43 0 0 0 3.651-14.792z" fill="#E75934" p-id="14740"></path></svg>'
            } else if (userName.startsWith("操作技巧")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(206 220 215), rgb(172 169 186 / 36%), rgba(150, 153, 225, 0.72) 200px)" });
                span5.innerHTML = '<svg class="icon" style="width: 2em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18060"><path d="M810.749 1023.965c-117.606 0-213.285-95.68-213.285-213.285V682.61H426.737v127.97c0 117.606-95.679 213.285-213.284 213.285C95.847 1023.865 0.168 928.185 0.168 810.58c0-117.606 95.68-213.285 213.285-213.285h127.97V426.67h-128.07C95.748 426.669 0.07 330.989 0.07 213.384 0.069 95.78 95.748 0.1 213.353 0.1 330.96 0.1 426.638 95.779 426.638 213.384v127.97h170.627v-128.07C597.265 95.68 692.945 0 810.55 0c117.605 0 213.284 95.679 213.284 213.284 0 117.606-95.68 213.285-213.284 213.285H682.679v170.627h127.97c117.606 0 213.285 95.68 213.285 213.285 0.1 117.805-95.58 213.484-213.185 213.484zM682.679 682.61v127.97c0 70.564 57.407 127.971 127.97 127.971s127.97-57.407 127.97-127.97S881.213 682.61 810.65 682.61H682.68z m-469.326 0c-70.563 0-127.97 57.407-127.97 127.97s57.407 127.971 127.97 127.971 127.97-57.407 127.97-127.97V682.61h-127.97z m213.384-85.314h170.628V426.67H426.737v170.627zM682.68 341.355h127.97c70.563 0 127.97-57.408 127.97-127.97S881.313 85.313 810.75 85.313s-127.97 57.407-127.97 127.97v128.07zM213.353 85.314c-70.563 0-127.97 57.407-127.97 127.97s57.407 127.971 127.97 127.971h127.97v-127.97c0.1-70.564-57.407-127.971-127.97-127.971z" p-id="18061"></path></svg>'
            } else if (userName.startsWith("软件部署")) {
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(144 176 232 / 62%), rgb(159 150 213 / 36%), rgb(99 103 207 / 72%) 200px)" });
                span5.innerHTML = '<svg class="icon" style="width: 2em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18899"><path d="M106.386651 217.051429l343.771429-202.605715a102.985143 102.985143 0 0 1 105.216 0l343.808 202.605715a105.691429 105.691429 0 0 1 51.529143 91.136v407.478857a106.386286 106.386286 0 0 1-51.529143 91.099428l-343.771429 202.605715a102.985143 102.985143 0 0 1-105.216 0l-343.881142-202.605715A105.691429 105.691429 0 0 1 54.857509 715.702857V308.187429c0-37.376 19.565714-71.862857 51.529142-91.136z m769.828572 494.628571V312.137143a46.921143 46.921143 0 0 0-22.381714-40.192L526.848366 73.874286a45.129143 45.129143 0 0 0-47.616 0L152.247223 271.945143c-13.970286 8.557714-22.454857 23.771429-22.381714 40.192V711.68c0 16.457143 8.411429 31.670857 22.381714 40.192l326.985143 198.107429c14.592 9.069714 33.024 9.069714 47.616 0l326.948571-198.107429c13.824-8.740571 22.235429-23.881143 22.418286-40.192z" fill="#2C9CFA" p-id="18900"></path><path d="M500.224366 200.923429l253.403428 148.48-253.44 148.443428-253.366857-148.48z" fill="#2C9CFA" p-id="18901"></path><path d="M666.22208 454.326857l87.405714 51.2-253.44 148.443429-253.366857-148.48 87.405714-51.2 165.997715 97.28z" fill="#2C9CFA" p-id="18902"></path><path d="M666.22208 607.890286l87.405714 51.2-253.44 148.48-253.366857-148.48 87.405714-51.2 165.997715 97.28z" fill="#2C9CFA" p-id="18903"></path></svg>'
            } li.appendChild(span5);

            var span = document.createElement('span');
            setDomStyle(span, { fontSize: "14px", paddingLeft: "12px", color: "rgb(81 102 217)", fontWeight: "bold", "textIndent": "10px" })
            span.innerText = fileName.substring(0, fileName.lastIndexOf('.'));
            li.appendChild(span);


            var span3 = document.createElement('span');
            span3.innerText = createTime;
            setDomStyle(span3, { fontSize: "12px", paddingLeft: "12px", color: "rgb(127 127 127)", fontWeight: "bold" })
            li.appendChild(span3);


            var span4 = document.createElement('span');
            span4.innerText = "";
            setDomStyle(span4, { fontSize: "12px", paddingLeft: "18px", color: "rgb(137 5 5)", fontWeight: "bold" })
            li.appendChild(span4);

            var br = document.createElement('br');
            li.appendChild(br);


            var span2 = document.createElement('span');
            span2.innerText = userName;
            setDomStyle(span2, { fontSize: "18px", paddingLeft: "10px", color: "rgb(39 103 23)", fontWeight: "bold" })
            li.appendChild(span2);

            li.onclick = function (e) {
                var etag = e.target
                if (e.target.tagName != "LI") {
                    etag = e.target.parentNode
                }
                sendData("DeployCAPFile:" + etag.tagData);
            }
            ul.appendChild(li);
        }
    }
}

function openCAPPages(edata) {
    var dirName = edata.substring(edata.indexOf(':') + 1);
    window.open("http://{NGURL}/" + dirName + "/")
}

//下面是处理安装包的问题
function autoLoadSetupExcel() {
    function findIsDownloadPage() {
        var h1 = document.getElementsByTagName('h1');
        if (h1.length == 0) return;

        var downloadExcels = document.getElementsByTagName('table');
        for (var i = 0; i < downloadExcels.length; i++) {
            var attr = downloadExcels[i].attributes["refSource"];
            if (attr) {
                loadExcel(downloadExcels[i],attr.value);
            }
        }
    }
    //'http://{WSURL}/installationPackage/XDB/downloads.json'
    function loadExcel(tableDom,href) {
        fetch(href)
            .then(response => {
                if (!response.ok) {
                    throw new Error('Network response was not ok');
                }
                if (href.endsWith('.table.json')) {
                    response.text().then((data) => {
                        createTableFromTable(tableDom, data, href);
                    })
                }
                else {
                    response.json().then((data) => {
                        createTableFromJSON(tableDom, data, href);
                    })
                }
                
            })
            .then(data => {
                console.log(data); // 输出 JSON 数据到控制台
                // 在这里可以对获取到的 JSON 数据进行处理
            })
            .catch(error => {
                console.error('There was a problem with the fetch operation:', error);
            });
    }
    function createTableFromTable(tableDom, jsonItem, href) {
        tableDom.innerHTML = jsonItem;
    }
    function createTableFromJSON(tableDom, jsonItem, href) {
        var tbody = document.createElement("tbody");
        tableDom.appendChild(tbody);
        var str = `<tbody><tr><td style="background-color:#555555;color:white;">发布版本</td> 
        <td style="background-color:#555555;color:white;">发布日期</td> 
        <td style="background-color:#555555;color:white;">操作系统 </td>
        <td style="background-color:#555555;color:white;">下载</td> 
        <td style="background-color:#555555;color:white;">更新信息</td></tr> 
        `;
        for (var i = 0; i < jsonItem.length; i++) {
            var downloadFile = href.substr(0, href.lastIndexOf('/'));
            str += "<tr><td>" + jsonItem[i].fileName + "</td> <td>" +
                jsonItem[i].publishDate + "</td><td>Windows</td><td`>" +
                "<a href=\"" + downloadFile + "\\" + jsonItem[i].fileName + "\">下载</a></td> <td>" +
                jsonItem[i].description+"</td></tr>";
        }
        str += `</tbody >`;
        tbody.innerHTML = str;
    }
    return findIsDownloadPage;
}

//下面对来自官网的页面进行控制
function handleFromOffical() {
    let ifFromOffical = localStorage.getItem("ifFromOffical");
    if (ifFromOffical == "false") {
        ifFromOffical = false;
    }
    if (ifFromOffical == "true") {
        ifFromOffical = true;
    }
    if(ifFromOffical){
        document.getElementsByClassName('sidebar')[0].remove();
        document.getElementsByClassName('navbar')[0].remove();
        var loginBox = document.getElementById('loginBox');
        if(loginBox!=null)
            loginBox.remove();
        var mainPage = document.getElementsByClassName('page');
        if (mainPage.length > 0) {
            mainPage[0].style.paddingLeft = "0px";
        }
    }
}

//下面是设置br高度的
function setDOMStyles() {
    function setLanguageDOMStyle() {
        var codeDivs = document.getElementsByTagName('pre');
        for (var i = 0; i < codeDivs.length; i++) {
            var parentElement = codeDivs[i].parentNode;
            if (parentElement.classList.contains("language-javascript") ||
                parentElement.classList.contains("language-") ||
                parentElement.classList.contains("language-sql") ) {
                setDomStyle(parentElement, {
                    "maxHeight": "300px",
                    "overflow": "Scroll",
                    position: "relative"
                });
                var copyButton = document.createElement('button');
                copyButton.innerText = '复制代码';
                copyButton.tag=parentElement;
                setDomStyle(copyButton, {
                    position: 'absolute',
                    right: '10px',
                    top: '10px',
                    padding: '5px 10px',
                    backgroundColor: '#007bff',
                    color: '#fff',
                    border: 'none',
                    borderRadius: '4px',
                    cursor: 'pointer',
                    zIndex:100
                });
                copyButton.onclick = function(se) {
                    let parentElement=se.target.tag;
                    var code = parentElement.childNodes[0].innerText;
                    if (navigator.clipboard) {
                        navigator.clipboard.writeText(code).then(function() {
                            copyButton.innerText = '已复制!';
                            setTimeout(function() {
                                copyButton.innerText = '复制代码';
                            }, 2000);
                        });
                    } else {
                        // Fallback for older browsers
                        const textArea = document.createElement('textarea');
                        textArea.value = code;
                        document.body.appendChild(textArea);
                        textArea.select();
                        try {
                            document.execCommand('copy');
                            copyButton.innerText = '已复制!';
                            setTimeout(function() {
                                copyButton.innerText = '复制代码';
                            }, 2000);
                        } catch (err) {
                            console.error('Failed to copy text: ', err);
                        }
                        document.body.removeChild(textArea);
                    }
                };
                parentElement.appendChild(copyButton);
            }
        }
    }
    function initBrs() {
        var brs = document.getElementsByTagName('br');
        for (var i = brs.length - 1; i >= 0; i--) {
            brs[i].outerHTML = "<div style='padding-bottom:12px'/>"
        }
        var mainDom = document.getElementsByTagName('main')[0];
        mainDom.style.fontFamily = 'Noto Sans';
    }

    setLanguageDOMStyle();
    initBrs();
}


//下面是设置愿望单的
function processWishBoard() {
    function findIsWishBoard() {
        var h1 = document.getElementsByTagName('h1');
        if (h1.length == 0 || h1[0].id != '愿望单') return;

        h1[0].style.display = "none"
        document.getElementsByClassName('sidebar')[0].style.width = "0px";
        var mainDom = document.getElementsByTagName('main')[0];
        setDomStyle(mainDom, {
            "paddingLeft": "0px", "width": "1200px", "margin": "0px auto",
            "background": "white",
            "borderRight": "1px solid rgb(209, 204, 204)",
            "borderLeft": "1px solid rgb(209, 204, 204)"
        });
        var app = document.getElementById('app');
        if (app) { setDomStyle(app, { "background": "aliceblue" }) }
        var jikePageList = document.getElementById('capList');
        if (jikePageList) { setDomStyle(jikePageList, { "background": "none" }) }

        sendData("GetWishboard:" + "10");

        setStyle();
    }

    function showWishBoard(edata) {
        //GetJikeFileList:b,cbfile1
        var ul = document.getElementById('wishList');
        ul.innerHTML = "";
        ul.style.borderRadius = "10px";
        ul.style.marginTop = "10px";
        if (edata.startsWith("GetWishboard:")) {
            var files = edata.substr("GetWishboard:".length).split('<%>');

            var allItems = [];
            for (var i = 0; i < files.length; i++) {
                var rowData = files[i].split('@')
                allItems.push({
                    "id": rowData[0],
                    "creator": rowData[1],
                    "wishContent": rowData[2],
                    "isrealing": rowData[3],
                    "realer": rowData[4],
                    "createtime": rowData[5]
                })
            }

            for (var i = 0; i < allItems.length; i++) {
                var item = allItems[i];
                if (item.wishContent == 'undefined' || item.wishContent.length < 5) continue;

                var li = document.createElement('li');
                setDomStyle(li, {
                    "padding": "2px 10px 2px 6px",
                    "background": "repeating-linear-gradient(0deg, rgba(156, 181, 225, 0.62), rgba(188, 180, 235, 0.36), rgba(150, 153, 225, 0.72) 200px)",
                    "margin": "3px",
                    "marginBottom": "10px",
                    "borderRadius": "10px",
                    "fontSize": "16px",
                    "border": "1px solid #c0c0c5",
                    "box-shadow": "1px 1px #9e8787"
                });

                var span5 = document.createElement('span');
                
                setDomStyle(li, { "background": "repeating-linear-gradient(0deg, rgb(156 225 206 / 62%), rgb(180 235 219 / 36%), rgb(150 225 201 / 72%) 200px)" })
                span5.innerHTML = '<svg class="icon" style="width: 2.25em;height: 2em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1280 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4075"><path d="M1079.381333 0a170.666667 170.666667 0 0 1 170.666667 170.666667v682.666666a170.666667 170.666667 0 0 1-170.666667 170.666667h-853.333333a170.666667 170.666667 0 0 1-170.666667-170.666667V170.666667a170.666667 170.666667 0 0 1 170.666667-170.666667h853.333333z m-215.04 768H423.338667v85.333333h440.832V768zM300.373333 225.792l-60.330666 60.416L433.493333 479.573333 240.042667 673.28l60.330666 60.330667 253.866667-253.866667L300.373333 225.792z" fill="#536076" p-id="4076"></path></svg>';

                li.appendChild(span5);

                var span = document.createElement('span');
                setDomStyle(span, { fontSize: "14px", paddingLeft: "12px", color: "rgb(81 102 217)", fontWeight: "bold", "textIndent": "10px" })
                span.innerText = item.creator+" -> "+item.realer;
                li.appendChild(span);


                var span3 = document.createElement('span');
                span3.innerText = item.createtime;
                setDomStyle(span3, { fontSize: "12px", paddingLeft: "12px", color: "rgb(127 127 127)", fontWeight: "bold" })
                li.appendChild(span3);


                var span4 = document.createElement('span');
                span4.innerHTML = item.isrealing == "是" ?
                    '<svg class="icon" style="width: 1.5em;height: 1.5em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3498"><path d="M426.666667 748.088889c12.325926 87.22963 64.474074 153.6 64.474074 153.6s52.148148-66.37037 64.474074-153.6H426.666667z" fill="#FD6513" p-id="3499"></path><path d="M442.785185 746.192593c14.222222 60.681481 49.303704 104.296296 49.303704 104.296296s34.133333-43.614815 49.303704-104.296296H442.785185z" fill="#FD9C13" p-id="3500"></path><path d="M395.377778 785.066667L271.17037 945.303704V724.385185l124.207408-95.762963z" fill="#F12A3F" p-id="3501"></path><path d="M395.377778 664.651852v120.414815L312.888889 892.207407V729.125926z" fill="#C92334" p-id="3502"></path><path d="M586.903704 785.066667L711.111111 945.303704V724.385185L586.903704 628.622222z" fill="#F12A3F" p-id="3503"></path><path d="M586.903704 664.651852v120.414815l83.437037 107.14074V729.125926z" fill="#C92334" p-id="3504"></path><path d="M410.548148 156.444444c2.844444-4.740741 4.740741-8.533333 7.585185-13.274074-1.896296 4.740741-4.740741 8.533333-7.585185 13.274074zM374.518519 230.4c5.688889-13.274074 11.377778-26.548148 18.014814-38.874074-6.637037 12.325926-12.325926 25.6-18.014814 38.874074z" fill="#FDB813" p-id="3505"></path><path d="M421.925926 137.481481c3.792593-5.688889 7.585185-12.325926 11.377778-18.014814-3.792593 5.688889-7.585185 11.377778-11.377778 18.014814z" fill="#F12A3F" p-id="3506"></path><path d="M361.244444 263.585185z" fill="#FDB813" p-id="3507"></path><path d="M508.207407 62.577778c10.42963 13.274074 24.651852 33.185185 40.770371 56.888889-15.17037-24.651852-29.392593-43.614815-40.770371-56.888889zM549.925926 119.466667c3.792593 5.688889 7.585185 11.377778 11.377778 18.014814-4.740741-6.637037-8.533333-12.325926-11.377778-18.014814z" fill="#DB2639" p-id="3508"></path><path d="M646.637037 537.6c-1.896296 18.962963-4.740741 36.977778-7.585185 54.044444 2.844444-17.066667 5.688889-35.081481 7.585185-54.044444zM355.555556 280.651852l5.688888-17.066667-5.688888 17.066667zM371.674074 694.992593l-5.688889-17.066667c1.896296 6.637037 3.792593 12.325926 5.688889 17.066667zM590.696296 191.525926c5.688889 12.325926 12.325926 25.6 18.014815 38.874074-5.688889-13.274074-12.325926-26.548148-18.014815-38.874074zM622.933333 660.859259c-1.896296 5.688889-3.792593 12.325926-5.688889 18.014815 1.896296-6.637037 3.792593-12.325926 5.688889-18.014815zM344.177778 591.644444c-2.844444-17.066667-5.688889-35.081481-7.585185-54.044444 1.896296 18.962963 4.740741 36.977778 7.585185 54.044444zM349.866667 620.088889c-0.948148-5.688889-2.844444-12.325926-3.792593-18.014815 0.948148 5.688889 2.844444 12.325926 3.792593 18.014815zM365.985185 677.925926zM433.303704 119.466667zM410.548148 156.444444c-1.896296 3.792593-4.740741 8.533333-6.637037 12.325926 1.896296-3.792593 4.740741-8.533333 6.637037-12.325926zM508.207407 62.577778c-10.42963-13.274074-17.066667-20.859259-17.066666-20.859259s-6.637037 7.585185-17.066667 20.859259c10.42963-13.274074 17.066667-20.859259 17.066667-20.859259s6.637037 7.585185 17.066666 20.859259zM608.711111 230.4c4.740741 10.42963 8.533333 21.807407 13.274074 33.185185-4.740741-11.377778-8.533333-22.755556-13.274074-33.185185zM403.911111 168.77037l-11.377778 22.755556 11.377778-22.755556zM355.555556 280.651852c-15.17037 46.459259-25.6 98.607407-25.6 152.651852 0 36.02963 1.896296 71.111111 5.688888 105.244444-3.792593-33.185185-5.688889-68.266667-5.688888-105.244444 0-54.044444 10.42963-106.192593 25.6-152.651852zM621.037037 263.585185l5.688889 17.066667c-0.948148-5.688889-2.844444-11.377778-5.688889-17.066667zM491.140741 748.088889h-94.814815c-4.740741-8.533333-9.481481-18.962963-14.222222-28.444445 4.740741 10.42963 9.481481 19.911111 14.222222 28.444445H587.851852c4.740741-8.533333 9.481481-18.962963 14.222222-28.444445-4.740741 10.42963-9.481481 19.911111-14.222222 28.444445H491.140741zM590.696296 191.525926l-11.377777-22.755556 11.377777 22.755556zM652.325926 433.303704c0-54.044444-10.42963-105.244444-25.6-152.651852 16.118519 46.459259 25.6 98.607407 25.6 152.651852zM579.318519 168.77037l-14.222223-25.6c3.792593 8.533333 9.481481 17.066667 14.222223 25.6zM357.451852 651.377778c-1.896296-6.637037-3.792593-12.325926-4.740741-18.962963 1.896296 6.637037 2.844444 12.325926 4.740741 18.962963zM352.711111 632.414815c-0.948148-3.792593-1.896296-7.585185-2.844444-12.325926 0.948148 3.792593 1.896296 8.533333 2.844444 12.325926z" fill="#FDB813" p-id="3509"></path><path d="M491.140741 748.088889V168.77037h-87.22963l-11.377778 22.755556c-5.688889 12.325926-12.325926 25.6-18.014814 38.874074-4.740741 10.42963-8.533333 21.807407-13.274075 33.185185l-5.688888 17.066667c-15.17037 46.459259-25.6 98.607407-25.6 152.651852 0 36.02963 1.896296 71.111111 5.688888 105.244444 1.896296 18.962963 4.740741 36.977778 7.585186 54.044445 0.948148 3.792593 0.948148 6.637037 1.896296 10.429629 0.948148 5.688889 2.844444 12.325926 3.792593 18.014815 0.948148 3.792593 1.896296 7.585185 2.844444 12.325926 1.896296 6.637037 2.844444 13.274074 4.740741 18.962963 0.948148 2.844444 1.896296 6.637037 2.844444 9.481481 1.896296 5.688889 3.792593 12.325926 5.688889 18.014815l5.688889 17.066667c2.844444 8.533333 6.637037 16.118519 9.481481 23.703704 4.740741 10.42963 9.481481 19.911111 14.222223 28.444444h96.711111z" fill="#FDB813" p-id="3510"></path><path d="M491.140741 168.77037V41.718519s-6.637037 7.585185-17.066667 20.859259c-10.42963 13.274074-24.651852 33.185185-40.77037 56.888889-3.792593 5.688889-7.585185 11.377778-11.377778 18.014814-0.948148 1.896296-2.844444 3.792593-3.792593 6.637038-2.844444 3.792593-4.740741 8.533333-7.585185 13.274074-1.896296 3.792593-4.740741 8.533333-6.637037 12.325926h87.22963z" fill="#F12A3F" p-id="3511"></path><path d="M630.518519 632.414815c-1.896296 6.637037-2.844444 13.274074-4.740741 18.962963 0.948148-6.637037 2.844444-12.325926 4.740741-18.962963zM637.155556 602.074074c-1.896296 10.42963-3.792593 19.911111-6.637037 30.340741 1.896296-10.42963 3.792593-19.911111 6.637037-30.340741z" fill="#FD9B13" p-id="3512"></path><path d="M627.674074 280.651852l-5.688889-17.066667c-3.792593-11.377778-8.533333-22.755556-13.274074-33.185185-5.688889-13.274074-11.377778-26.548148-18.014815-38.874074l-11.377777-22.755556h-87.22963v579.318519H587.851852c4.740741-8.533333 9.481481-18.962963 14.222222-28.444445 5.688889-12.325926 10.42963-26.548148 16.118519-40.77037 1.896296-5.688889 3.792593-11.377778 5.688888-18.014815 0.948148-2.844444 1.896296-5.688889 2.844445-9.481481 1.896296-6.637037 3.792593-12.325926 4.740741-18.962963 2.844444-9.481481 4.740741-19.911111 6.637037-30.340741 0.948148-3.792593 0.948148-6.637037 1.896296-10.42963 2.844444-17.066667 5.688889-35.081481 7.585185-54.044444 3.792593-33.185185 5.688889-68.266667 5.688889-105.244444-0.948148-53.096296-10.42963-105.244444-25.6-151.703704z" fill="#FD9B13" p-id="3513"></path><path d="M491.140741 168.77037H578.37037l-14.222222-25.6c-0.948148-1.896296-2.844444-3.792593-3.792592-6.637037-3.792593-5.688889-7.585185-12.325926-11.377778-18.014814-16.118519-24.651852-30.340741-43.614815-40.770371-56.888889-10.42963-13.274074-17.066667-20.859259-17.066666-20.85926v128z" fill="#C92334" p-id="3514"></path><path d="M384.948148 726.281481c3.792593 7.585185 7.585185 15.17037 11.377778 21.807408h95.762963v-21.807408H384.948148z" fill="#FFFFFF" p-id="3515"></path><path d="M598.281481 726.281481H491.140741v21.807408h95.762963c3.792593-6.637037 7.585185-14.222222 11.377777-21.807408z" fill="#E1EDF7" p-id="3516"></path><path d="M491.140741 288.237037v212.385185c58.785185 0 106.192593-47.407407 106.192592-106.192592s-47.407407-106.192593-106.192592-106.192593z" fill="#E1EDF7" p-id="3517"></path><path d="M384.948148 395.377778c0 58.785185 47.407407 106.192593 106.192593 106.192592V288.237037c-58.785185 0-106.192593 48.355556-106.192593 107.140741z" fill="#FFFFFF" p-id="3518"></path><path d="M491.140741 305.303704v179.2c49.303704 0 89.125926-39.822222 89.125926-89.125926s-39.822222-90.074074-89.125926-90.074074z" fill="#1E2D4F" p-id="3519"></path><path d="M402.014815 395.377778c0 49.303704 39.822222 89.125926 89.125926 89.125926V305.303704c-49.303704 0-89.125926 39.822222-89.125926 90.074074z" fill="#2D4375" p-id="3520"></path></svg>'
                    : '<svg class="icon" style="width: 1.5em;height: 1.5em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14573"><path d="M1024 518.32C1024 229.22 794.78 0 505.68 0 229.22 0 0 229.22 0 518.32 0 794.78 229.22 1024 505.68 1024c289.1 0 518.32-229.22 518.32-505.68z" fill="#D2262A" p-id="14574"></path><path d="M694.32 737.11h-17.17c-3-62.91-17.13-110.31-37.63-145.88l-0.27-0.71c-21.53-37.19-50-61.47-80-76.26 30-15.06 58.44-39.07 80-76.22l0.27-0.75c21.2-37 35.76-87.06 38-154.07h16.82a20.49 20.49 0 1 0 0-41H317.81a20.49 20.49 0 1 0 0 41h16.85c2.46 67 16.72 117 37.95 154.07l0.43 0.75c21.52 37.15 49.84 61.16 79.93 76.22-30.09 14.74-58.42 39.08-79.97 76.26l-0.43 0.71c-20.32 35.56-34.47 83-37.49 145.89h-17.3a20.5 20.5 0 1 0 0 41h376.54a20.5 20.5 0 1 0 0-41zM393.83 603.67l0.31-0.88c24.72-42.72 51.7-65.53 87.5-76.67l1.4-0.86h0.29a5.94 5.94 0 0 0 2.06-1.18l0.25-0.27 0.88-0.61 0.14-0.29 0.87-0.86 0.15-0.29c0.58-0.61 0.86-1.32 1.46-2.06v-0.27a5.25 5.25 0 0 0 0.88-2.95l0.13-0.27v-0.91l0.15-0.73V514l-0.15-0.75v-0.59l-0.13-0.58a5.12 5.12 0 0 0-0.88-2.93v-0.29a13.67 13.67 0 0 0-1.45-2l-0.16-0.45-0.87-0.73h-0.14l-0.88-0.85-0.25-0.3q-1-0.7-2.06-1.33l-0.33-0.2-1.4-0.56c-35.79-10.83-62.78-34-87.5-77l-0.31-0.29c-19.21-33.84-32.27-79.9-34.59-141.95h293.73c-2.06 62-15.16 108.12-34.61 141.93l-0.29 0.3c-24.6 43-51.7 66.14-87.18 77l-1.76 0.57-0.29 0.15c-0.73 0.45-1.33 0.88-2.07 1.33l-0.27 0.3-0.87 0.86-1 0.73-0.13 0.45a6.56 6.56 0 0 0-1.18 2l-0.3 0.3-0.87 2.92v4.4l0.87 2.94 0.29 0.27a9.87 9.87 0 0 0 1.18 2.06l0.15 0.29 1 0.85v0.3l0.88 0.61 0.27 0.27a6 6 0 0 0 2.06 1.18h0.29l1.76 0.85c35.48 11.15 62.58 34 87.18 76.68l0.29 0.88c10.31 17.58 18.57 38.94 24.71 63.8 1.3 7.08 5.68 22.69 6.88 42.86-19.53-17.4-74.27-30.18-139.71-31.16V485.31a16.89 16.89 0 0 0 2-0.74l0.15-0.3 3.44-1.27 0.31-0.15h0.29c23.71-7.5 42.87-19.35 58.6-34.85 16.91-16.68 29.68-37.45 38.37-60.29 2.36-6.44-0.53-13.46-6.94-15.8a12.19 12.19 0 0 0-16 7c-7.66 19.46-18.3 37.31-32.72 51.51a117.54 117.54 0 0 1-48.38 28.68l-0.59 0.27-1.45 0.3-1.18 0.58-1.17-0.58-0.87-0.3-1.15-0.27c-19.45-6.16-35.6-16.1-48.27-28.68-14.53-14.19-25.13-32-32.84-51.51a11.87 11.87 0 0 0-15.69-7c-6.41 2.33-9.34 9.36-7 15.79 8.75 22.85 21.25 43.62 38.38 60.29 15.41 15.54 34.9 27.39 58.44 34.85h0.06l0.45 0.15 3.19 1.31 0.88 0.3c0.45 0.22 0.93 0.45 1.47 0.68v193.81c-61.32 0-114.34 10.33-139.69 25.35 0.87-9.91 2.91-21.14 6.77-37 6.12-25.15 14.53-46.22 24.73-63.8z" fill="#FFFFFF" p-id="14575"></path></svg>';
                setDomStyle(span4, { fontSize: "12px", paddingLeft: "18px", color: "rgb(137 5 5)", fontWeight: "bold" })
                li.appendChild(span4);

                var br = document.createElement('br');
                li.appendChild(br);


                var span2 = document.createElement('span');
                span2.innerText = item.wishContent;
                setDomStyle(span2, { fontSize: "18px", paddingLeft: "10px", color: "rgb(39 103 23)", fontWeight: "bold" })
                li.appendChild(span2);

                li.onclick = function (e) {
                    var etag = e.target
                    if (e.target.tagName != "LI") {
                        etag = e.target.parentNode
                    }
                }
                ul.appendChild(li);
            }
        }
    }

    function setStyle() {
        var newPageBtn = document.getElementById('newPage');
        setDomStyle(newPageBtn, {
            "background": "rgb(26 48 169)",
            "padding": "3px 26px",
            "borderRadius": "21px",
            "color": "white",
            "border": "0px",
            "margin": "2px 4px"
        });
      
        buttonDiv.insertBefore(newPageBtn.parentNode, buttonDiv.firstChild)
        setDomStyle(buttonDiv, {
            "background": "repeating-linear-gradient(45deg, #e9f5ff, #e7f0fe 100px)",
            "boxShadow": "1px 1px 7px 0px #e7f0fe",
            "padding": "10px",
            "borderRadius": "10px",
            "position": "fixed",
            "width": "1080px",
            "border": "1px solid rgb(192, 192, 197)",
            "right": "calc(50% - 550px)"
        })
        setDomStyle(document.getElementById('jikePageList').parentNode, {
            "paddingTop": "106px"
        })
    }

    window.findIsWishBoard = findIsWishBoard;
    window.showWishBoard = showWishBoard;
}